package com.ny.zmb.openapi.gMdemo.bean;

import java.util.List;

public class DataResult<T> {

	/*
	 * 状态码
	 */
	private String code;

	/*
	 *
	 */
	private String msg;

	/*
	 * 每页记录数
	 */
	private int pageSize = 10;

	/*
	 * 当前页
	 */
	private int currentPage = 1;

	/*
	 * 查询记录起始位置
	 */
	private int startSize = 0;

	/*
	 * 总记录数
	 */
	private int totalSize;

	/*
	 * 结果集
	 */
	private List<T> resultList;
	

	
	/*
	 * 总页数
	 */
	private int totalPage;
	
	/*
	 * 泛型单个结果
	 */
	private T obj;
	
	/*
	 * list集合
	 */
	private List list;

	/**
	 * @return the resultList
	 */
	public List<T> getResultList() {
		return resultList;
	}

	/**
	 * @param resultList the resultList to set
	 */
	public void setResultList(List<T> resultList) {
		this.resultList = resultList;
	}

	/**
	 * @return the pageSize
	 */
	public int getPageSize() {
		return pageSize;
	}

	/**
	 * @param pageSize the pageSize to set
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	/**
	 * @return the currentPage
	 */
	public int getCurrentPage() {
		return currentPage;
	}

	/**
	 * @param currentPage the currentPage to set
	 */
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	/**
	 * @return the startSize
	 */
	public int getStartSize() {
		return startSize;
	}

	/**
	 * @param startSize the startSize to set
	 */
	public void setStartSize(int startSize) {
		this.startSize = startSize;
	}

	/**
	 * @return the totalSize
	 */
	public int getTotalSize() {
		return totalSize;
	}

	/**
	 * @param totalSize the totalSize to set
	 */
	public void setTotalSize(int totalSize) {
		this.totalSize = totalSize;
	}

	/**
	 * @return the totalPage
	 */
	public int getTotalPage() {
		return totalPage;
	}

	/**
	 * @param totalPage the totalPage to set
	 */
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	/**
	 * @return the obj
	 */
	public T getObj() {
		return obj;
	}

	/**
	 * @param obj the obj to set
	 */
	public void setObj(T obj) {
		this.obj = obj;
	}

	/**
	 * @return the list
	 */
	public List getList() {
		return list;
	}

	/**
	 * @param list the list to set
	 */
	public void setList(List list) {
		this.list = list;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the msg
	 */
	public String getMsg() {
		return msg;
	}

	/**
	 * @param msg the msg to set
	 */
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	
}
